 /**注意！！！！！ 改文件由脚本生成不要改动*/



export namespace Spb{

    export class spbPackage {
        type :number
        session :number
    }
    
    export class reward_data {
        type    :number
        id      :number
        count   :number
    }
    
    export class item_data {
        handle      :number
        id          :number
        count       :number
        attrs       :attribute_data[]
        invalidtime :number
    }
    
    export class equip_item_data {
        id              :number
        attrs           :attribute_data[]
    }
    
    export class attribute_data {
        type    :number
        value   :number
    }
    
    // 使用道具
    export class cs_bag_use_item {  
        static type = "cs_bag_use_item"
    	request : {
    		id		:number
    		count	:number
    	}	
    }
    
    // 处理背包数据初始化
    export class sc_bag_init_data {  
        static type = "sc_bag_init_data"
    	request : {
    		code	:number
    		type	:number // 0是其他物品 1是装备
    		datas 	:item_data[]
    	}
    }
    
    // 处理删除背包数据
    export class sc_bag_deal_delete_item {  
        static type = "sc_bag_deal_delete_item"
    	request : {
    		type	:number
    		handle	:number
    	}	
    }
    
    // 处理添加背包数据
    export class sc_bag_deal_add_item {  
        static type = "sc_bag_deal_add_item"
    	request : {
    		type	:number
    		data 	:item_data
    		showTip :number
    	}	
    }
    
    // 处理物品更新
    export class sc_bag_update_item_data {  
        static type = "sc_bag_update_item_data"
    	request : {
    		type	:number
    		handle	:number
    		num 	:number
    		showTip :number
    	}
    }
    
    // 发送聊天信息
    export class cs_chat_send_info {  
        static type = "cs_chat_send_info"
    	request : {
    		type 		:number 	//聊天类型 1=世界聊天，2=私聊
    		str			:string 		//内容
    	}
    }
    
    export class chat_data {
    	type 		:number			// 1 世界聊天
    	id 			:number
    	name 		:string
    	job 		:number
    	sex 		:number
    	vip 		:number
    	str 		:string
    	serverid 	:number
    	shareId 	:number
    	time		:number
    	headframe	:number 	//头像框
    }
    
    export class sc_chat_new_msg {  
        static type = "sc_chat_new_msg"
    	request : {
    		chatData :chat_data
    	}
    }
    
    export class sc_chat_init_msg {  
        static type = "sc_chat_init_msg"
    	request : {
    		chatDatas :chat_data[]
    	}
    }
    
    // 聊天信息发送成功
    export class sc_chat_is_send_success {  
        static type = "sc_chat_is_send_success"
    	request : {
    		success 	:boolean
    	}
    }
    
    // 发送GM命令
    export class cs_sene_gm_command {  
        static type = "cs_sene_gm_command"
    	request : {
            cmd       :string
        }
    }
    
    // 请求登录
    export class cs_login {  
        static type = "cs_login"
    	request : {
            name        :string
            password    :string
            reward_data :reward_data[]
        }
    }
    
    export class sc_login {  
        static type = "sc_login"
    	request : {
            playerId    :number
    		time        :number
            name        :string
            reward_data :reward_data[]
        }
    }
    
    export class cs_mail_get_content {  
        static type = "cs_mail_get_content"
    	request : {
    		handle 	:number
    	}
    }
    
    export class cs_mail_get_reward {  
        static type = "cs_mail_get_reward"
    	request : {
    		handle 	:number[]
    	}
    }
    export class mail_data {
    	handle		:number
    	title		:string
    	times		:number
    	type		:number		// 读取状态  0 未读 1 已读
    	receive		:number		// 领取状态  0 未领取 1 领取
    }
    
    export class mail_update_data {
    	handle		:number
    	type		:number
    	receive		:number	
    }
    
    export class sc_mail_init_info {  
        static type = "sc_mail_init_info"
    	request : {
    		mailData 	:mail_data[]
    	}
    }
    
    export class sc_mail_detailed_info {  
        static type = "sc_mail_detailed_info"
    	request : {
    		mailData 	:mail_data
    		text		:string
    		rewardData	:reward_data[]
    	}
    }
    
    export class sc_mail_delete {  
        static type = "sc_mail_delete"
    	request : {
    		handle 	:number
    	}
    }
    
    export class sc_mail_update_info {  
        static type = "sc_mail_update_info"
    	request : {
    		updateData 			:mail_update_data[]
    		showWarnBagSpace	:boolean
    	}
    }
    
    export class sc_mail_add_info {  
        static type = "sc_mail_add_info"
    	request : {
    		mailData 	:mail_data
    	}
    }
    export class cs_shop_buy {  
        static type = "cs_shop_buy"
    	request : {
    		type 	:number //商店分类
    		id 		:number //物品索引
    		count	:number
    	}
    }
    export class shop_data {
        type     :number        //商店分类
        id       :number        //物品索引
        count    :number        //购买数量
    }
    
    export class sc_shop_buy {  
        static type = "sc_shop_buy"
    	request : {
    		type 	:number
    		id 		:number
    		count 	:number
    	}
    }
    
    
    export class sc_shop_buy_info {  
        static type = "sc_shop_buy_info"
    	request : {
    		shopdatas	:shop_data[]		//商店数据
    	}
    }
    
    
};
window['Spb'] = Spb